package cn.jolyoulu.adminweb.entity.vo;

import lombok.Data;
import cn.jolyoulu.cmnservice.entity.po.SysDictType;

import java.util.Objects;

/**
 * @Author LuZhouJin
 * @Date 2023/3/17
 */
@Data
public class SysDictTypeVO {

    /** 字典id */
    private String id;

    /** 字典名称 */
    private String dictName;

    /** 字典类型 */
    private String dictType;

    public SysDictTypeVO(SysDictType sysDictType) {
        if (Objects.nonNull(sysDictType)) {
            this.id = sysDictType.getId();
            this.dictName = sysDictType.getDictName();
            this.dictType = sysDictType.getDictType();
        }
    }
}
